/*
 * @Author: 这个熊
 * @Date: 2022-04-22 18:14:02
 * @LastEditors: 这个熊
 * @LastEditTime: 2022-04-24 09:38:14
 * @Description: 
 */
const Koa = require('koa')
const app = new Koa()

// 路由
const Router = require('koa-router')
const router = new Router()

const cross = require('./plugin/cross')

const koaBody = require('koa-body')({
    multipart: !0
})


router.post('/request', koaBody, cross)
app.use(router.routes())


app.listen(3300, () => {
	console.log('\n\n       Listening at http://localhost:' + 3300 + '\n\n')
})